<?php

namespace App\Library\Requests\Withdraw;

use App\Library\Requests\Base\BasePageRequest;

class WithdrawPageRequest extends BasePageRequest
{
    public function rules(): array
    {
        return array_merge(
            parent::rules(), [
                'startAt' => 'nullable|date|date_format:Y-m-d',
                'endAt' => 'nullable|date|date_format:Y-m-d|after_or_equal:startAt'
            ]
        );
    }
}
